Fixes use of deprecated function each - #1
Conversation
the function `each` is deprecated since PHP 7.2 This pull request fixes that by replacing `each` with `current` and `next`
|
I just found out about this library and would like to use it but this issue forces me to fork it. Would it be possible to merge this at some point? :-) |
1 similar comment
|
I just found out about this library and would like to use it but this issue forces me to fork it. Would it be possible to merge this at some point? :-) |
|
In case this helps anyone - this fix doesn't address the tokenizer changes in PHP8, just the each function deprecation, so the library is still not functional in PHP8 with this patch. In any case this library is no longer needed, just use https://github.com/nette/utils instead. The relevant method, which was originally in nette/DI, is now part of nette/utils, is public and also PHP 8 compatible. See https://github.com/nette/utils/blob/master/src/Utils/Reflection.php |
the function
eachis deprecated since PHP 7.2 This pull request fixes that by replacingeachwithcurrentandnext